
package com.xebest.config;

import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

/**
 * 获取易支付参数信息
 *
 * @author 李贝贝
 */
@Component
@ConfigurationProperties(prefix = "epay")
public class XeVenEpayConfig {

    /**
     * 商户号
     */
    private String merId;
    /**
     * 商户key
     */
    private String merKey;
    /**
     * 易支付货到付款创建POS刷卡支付单地址
     */
    private String merchantApi;
    /**
     * 自营供货商易支付帐号
     */
    private String payZiyingAccount;
    /**
     * 创单回调通知url
     */
    private String payNotifyUrl;
    /**
     * 易支付退款服务URL
     */
    private String payRefundHttpUrl;

    public XeVenEpayConfig() {
        super();
    }

    public String getMerId() {

        return merId;
    }

    public void setMerId(String merId) {

        this.merId = merId;
    }

    public String getMerKey() {

        return merKey;
    }

    public void setMerKey(String merKey) {

        this.merKey = merKey;
    }

    public String getMerchantApi() {

        return merchantApi;
    }

    public void setMerchantApi(String merchantApi) {

        this.merchantApi = merchantApi;
    }

    public String getPayZiyingAccount() {

        return payZiyingAccount;
    }

    public void setPayZiyingAccount(String payZiyingAccount) {

        this.payZiyingAccount = payZiyingAccount;
    }

    public String getPayNotifyUrl() {

        return payNotifyUrl;
    }

    public void setPayNotifyUrl(String payNotifyUrl) {

        this.payNotifyUrl = payNotifyUrl;
    }


    public String getPayRefundHttpUrl() {

        return payRefundHttpUrl;
    }

    public void setPayRefundHttpUrl(String payRefundHttpUrl) {

        this.payRefundHttpUrl = payRefundHttpUrl;
    }

    @Override
    public String toString() {
        return "XeVenEpayConfig [merId=" + merId + ", merKey=" + merKey + ", merchantApi=" + merchantApi
                + ", payZiyingAccount=" + payZiyingAccount + ", payNotifyUrl=" + payNotifyUrl + ", payRefundHttpUrl="
                + payRefundHttpUrl + "]";
    }


}
  
